<!DOCTYPE html>
<html lang="en">
<head>
    <script src="js/jquery-1.9.1.min.js"></script>
    <title>Title</title>
    <style>
        .header{
            width: 100%;
            min-height: 30px;
            background-color: red;
        }
        .footer{
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 30px;
            background-color: red;
        }
        .main{
            margin-top: 35px;
            min-height: 200px;
            background-color: yellow;
        }
    </style>
</head>
<body>
<div class="main" id="main">main</div>
<div class="header" id="header">header</div>
<div class="main" style="min-height: 1200px;">main</div>
<div class="footer">footer</div>
<script type="text/javascript">

</script>
</body>
</html>